#include "message.h"
#include <iostream>
#include <fstream>

#ifndef _LIST_H
#define	_LIST_H

#define INITIAL_SIZE 100

class List {
    public:
        List();
        ~List();
        bool insert(byte);
        void clear();
        byte * getPointerData();
        unsigned long int getSize();
        void copy(const byte *, int);
        void showList(bool type = true);
    private:
        byte *data;
        unsigned long int capacity, size;
        bool reallocMemory();
        void clearMemory();
};

#endif	/* _LIST_H */

